<?php
//index_instructor.php
//provides the instructor's view of the home page - rjs
//This page cannot be accessed externally, only pulled in by the index.php file.
if (!isset($allow)) { $allow=false; }
require_once("overhead.php");

print "Hello, ".$currentUserName."! This is your dashboard for ".$currentCourse.". <br />";
print "<h3>Available Assignments:</h3>";
if (count($assignments)==0) { print "<i>There are no assignments for this course.</i>"; }
foreach ($assignments as $assignment) {
	//print "<a href='viewAssignment.php?uid=".$currentUser."&cid=".$currentCourse."&role=".$currentRole."&aid=".$assignment['ID']."'>".$assignment['Name']."</a><br />";
	print "<a href='viewAssignment.php?aid=".$assignment['ID']."'>".$assignment['Name']."</a><br />";

}
//print "<br /><a href='createAssignment.php?uid=".$currentUser."&cid=".$currentCourse."&role=".$currentRole."'>Create a new assignment</a>.";
print "<br /><a href='createAssignment.php'>Create a new assignment</a>.";

?>